//
//  WDUserDetailRequest.m
//  wd-serviceapp
//
//  Created by Bin Tang on 2024/8/21.
//

#import "WDUserDetailRequest.h"

@interface WDUserDetailRequest ()

/// 用户id
@property (nonatomic, assign) NSInteger userId;
@end

@implementation WDUserDetailRequest

- (instancetype)initWithUserId:(NSInteger)userId {
    if (self = [super init]) {
        self.userId = userId;
    }
    return self;
}

- (NSString *)requestUrl {
    return kAPP_USER_DETAIL;
}

- (TYZRequestSerializerType)requestSerializerType {
    return TYZRequestSerializerTypeHTTP;
}

- (TYZRequestMethod)requestMethod {
    return TYZRequestMethodGET;
}

- (id)requestArgument {
    NSDictionary *params = @{@"userId":@(self.userId)};
    return params;
}

- (Class)rspClass {
    return [ZHCustomUserInfoModel class];
}

@end
